﻿using System;
using System.Web.UI;
using RCSP.FrontEnd.Common;

namespace RCSP.FrontEnd.UserControls
{
    public partial class Top : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var basePage = new BasePage();

            lblTime.Text = DateTime.UtcNow.ToLocalTime().ToString("日時: yyyy/MM/dd(ddd) tt hh:mm:ss");
            if (basePage.GetSession(BasePage.SES_DISPLAY_NAME) != null)
            {
                lblName.Text = ((BasePage) Page).GetSession(BasePage.SES_DISPLAY_NAME).ToString();
            }

            if (basePage.GetSession(BasePage.SES_YEAR_LABLE) != null)
            {
                lblYear.Text = ((BasePage) Page).GetSession(BasePage.SES_YEAR_LABLE).ToString();
            }
        }
    }
}